package com.chenglai.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_goods" )
@Table( name ="t_cl_goods" )
public class Goods  implements Serializable {

    @Id
   	@Column(name = "goods_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer goodsId;

	/**
	 * 商品名称
	 */
   	@Column(name = "goods_name" )
	@ApiModelProperty( value="商品名称")
	private String goodsName;

	/**
	 * 副标题
	 */
   	@Column(name = "goods_title" )
	@ApiModelProperty( value="副标题")
	private String goodsTitle;

	/**
	 * 关键词
	 */
   	@Column(name = "goods_key" )
	@ApiModelProperty( value="关键词")
	private String goodsKey;

	/**
	 * 排序
	 */
   	@Column(name = "goods_sort" )
	@ApiModelProperty( value="排序")
	private Integer goodsSort;

	/**
	 * 商品分类
	 */
   	@Column(name = "goods_classify" )
	@ApiModelProperty( value="商品分类")
	private Integer goodsClassify;

	/**
	 * 商品状态0未上架 1已上架
	 */
   	@Column(name = "goods_status" )
	@ApiModelProperty( value="商品状态0未上架 1已上架")
	private Integer goodsStatus;

	/**
	 * 商品详情
	 */
   	@Column(name = "goods_detail" )
	@ApiModelProperty( value="商品详情")
	private String goodsDetail;

   	@Column(name = "create_time" )
	@ApiModelProperty( value="null")
	private String createTime;

	/**
	 * 总库存
	 */
   	@Column(name = "goods_inventory" )
	@ApiModelProperty( value="总库存")
	private Integer goodsInventory;

	/**
	 * 原价（划线价格）
	 */
   	@Column(name = "goods_original_price" )
	@ApiModelProperty( value="原价（划线价格）")
	private Double goodsOriginalPrice;

	/**
	 * 售价
	 */
   	@Column(name = "goods_sale_price" )
	@ApiModelProperty( value="售价")
	private Double goodsSalePrice;





    @ApiModelProperty( value="团购价")
    @Transient
    private Double goodsGroupPrice;

    @ApiModelProperty(value = "团构人数（几人开团）")
    @Transient
    private Integer goodsGroupNumber;

    @ApiModelProperty(value = "团购ID")
    @Transient
    private Integer groupId;




   	private List<GoodsAttrGroup> goodsAttrGroupList;

   	private List<GoodsInventory> inventoryList;

  public Integer getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Integer goodsId) {
    this.goodsId = goodsId;
  }


  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }


  public String getGoodsTitle() {
    return goodsTitle;
  }

  public void setGoodsTitle(String goodsTitle) {
    this.goodsTitle = goodsTitle;
  }


  public String getGoodsKey() {
    return goodsKey;
  }

  public void setGoodsKey(String goodsKey) {
    this.goodsKey = goodsKey;
  }


  public Integer getGoodsSort() {
    return goodsSort;
  }

  public void setGoodsSort(Integer goodsSort) {
    this.goodsSort = goodsSort;
  }


  public Integer getGoodsClassify() {
    return goodsClassify;
  }

  public void setGoodsClassify(Integer goodsClassify) {
    this.goodsClassify = goodsClassify;
  }


  public Integer getGoodsStatus() {
    return goodsStatus;
  }

  public void setGoodsStatus(Integer goodsStatus) {
    this.goodsStatus = goodsStatus;
  }


  public String getGoodsDetail() {
    return goodsDetail;
  }

  public void setGoodsDetail(String goodsDetail) {
    this.goodsDetail = goodsDetail;
  }


  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }


  public Integer getGoodsInventory() {
    return goodsInventory;
  }

  public void setGoodsInventory(Integer goodsInventory) {
    this.goodsInventory = goodsInventory;
  }


  public Double getGoodsOriginalPrice() {
    return goodsOriginalPrice;
  }

  public void setGoodsOriginalPrice(Double goodsOriginalPrice) {
    this.goodsOriginalPrice = goodsOriginalPrice;
  }


  public Double getGoodsSalePrice() {
    return goodsSalePrice;
  }

  public void setGoodsSalePrice(Double goodsSalePrice) {
    this.goodsSalePrice = goodsSalePrice;
  }

    public List<GoodsAttrGroup> getGoodsAttrGroupList() {
        return goodsAttrGroupList;
    }

    public void setGoodsAttrGroupList(List<GoodsAttrGroup> goodsAttrGroupList) {
        this.goodsAttrGroupList = goodsAttrGroupList;
    }

    public List<GoodsInventory> getInventoryList() {
        return inventoryList;
    }

    public void setInventoryList(List<GoodsInventory> inventoryList) {
        this.inventoryList = inventoryList;
    }

    public Double getGoodsGroupPrice() {
        return goodsGroupPrice;
    }

    public void setGoodsGroupPrice(Double goodsGroupPrice) {
        this.goodsGroupPrice = goodsGroupPrice;
    }

    public Integer getGoodsGroupNumber() {
        return goodsGroupNumber;
    }

    public void setGoodsGroupNumber(Integer goodsGroupNumber) {
        this.goodsGroupNumber = goodsGroupNumber;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
}
